
INCLUDE_DIRECTORIES(
  ${${PROJECT_NAME}_SOURCE_DIR}/src
  )

function(buildExample _name)
  set(_srcs ${ARGN})
  set (CMAKE_INCLUDE_CURRENT_DIR ON)
  aux_source_directory(${ARGV1} _srcs)
  FILE(GLOB KIT_MOC_SRCS ${ARGV1}/*.h) 
  QT5_WRAP_CPP(KIT_MOC_CPP ${KIT_MOC_SRCS})
  list(APPEND _srcs ${KIT_MOC_CPP})
  foreach(var ${_srcs})
    message("srcFile:" ${var})
  endforeach(var _srcs)
  link_libraries(${PROJECT_NAME})
  add_executable(${_name} ${_srcs})
  find_package(Qt5 COMPONENTS Core Widgets REQUIRED)  
  QT5_USE_MODULES(${_name} Widgets Core Gui)

endfunction()

ADD_SUBDIRECTORY(easter)
ADD_SUBDIRECTORY(google)
ADD_SUBDIRECTORY(population)
